<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的个人中心 - 多元社交</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #165DFF;
            --primary-light: #E8F3FF;
            --secondary: #0FC6C2;
            --text-dark: #1D2129;
            --text-gray: #4E5969;
            --text-light: #86909C;
            --border: #E5E6EB;
            --bg-light: #F2F3F5;
            --success: #00B42A;
            --warning: #FF7D00;
            --danger: #F53F3F;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            color: var(--text-dark);
            background-color: #F7F8FA;
            line-height: 1.6;
        }

        /* 顶部导航栏 */
        .main-nav {
            background-color: white;
            border-bottom: 1px solid var(--border);
            padding: 0.75rem 1.5rem;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .navbar-brand {
            color: var(--primary);
            font-weight: 700;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .search-box {
            position: relative;
            max-width: 400px;
            width: 100%;
        }

        .search-input {
            width: 100%;
            padding: 0.5rem 1rem 0.5rem 2.5rem;
            border-radius: 6px;
            border: 1px solid var(--border);
            background-color: var(--bg-light);
            font-size: 0.9rem;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-light);
        }

        .nav-actions .nav-link {
            color: var(--text-gray);
            margin: 0 0.5rem;
            font-weight: 500;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .nav-actions .nav-link:hover {
            color: var(--primary);
        }

        .notification-badge {
            position: relative;
        }

        .badge-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 主容器 */
        .dashboard-container {
            display: flex;
            min-height: calc(100vh - 58px);
        }

        /* 侧边栏导航 */
        .sidebar {
            width: 260px;
            background-color: white;
            border-right: 1px solid var(--border);
            padding: 1.5rem 0;
            flex-shrink: 0;
            height: calc(100vh - 58px);
            position: sticky;
            top: 58px;
            overflow-y: auto;
        }

        .user-profile-preview {
            padding: 0 1.5rem 1.5rem;
            border-bottom: 1px solid var(--border);
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .preview-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--primary-light);
            margin: 0 auto 1rem;
        }

        .preview-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }

        .preview-bio {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 1rem;
            line-height: 1.4;
        }

        .edit-profile-btn {
            width: 100%;
            background-color: var(--primary-light);
            color: var(--primary);
            border: none;
            border-radius: 6px;
            padding: 0.5rem;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .edit-profile-btn:hover {
            background-color: var(--primary);
            color: white;
        }

        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar-menu-item {
            margin-bottom: 0.25rem;
        }

        .sidebar-menu-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 1.5rem;
            color: var(--text-gray);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s;
        }

        .sidebar-menu-link:hover, .sidebar-menu-link.active {
            background-color: var(--primary-light);
            color: var(--primary);
        }

        .menu-icon {
            width: 20px;
            text-align: center;
        }

        .menu-badge {
            margin-left: auto;
            background-color: var(--primary);
            color: white;
            border-radius: 10px;
            padding: 0.1rem 0.5rem;
            font-size: 0.8rem;
        }

        .menu-section-title {
            padding: 1rem 1.5rem 0.5rem;
            font-size: 0.8rem;
            text-transform: uppercase;
            color: var(--text-light);
            letter-spacing: 0.5px;
        }

        /* 主内容区域 */
        .main-content {
            flex-grow: 1;
            padding: 2rem;
            max-width: calc(100% - 260px);
        }

        .content-header {
            margin-bottom: 2rem;
        }

        .page-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .page-description {
            color: var(--text-light);
            font-size: 1rem;
        }

        /* 统计卡片 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .stat-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .stat-title {
            font-size: 0.95rem;
            color: var(--text-light);
            font-weight: 500;
        }

        .stat-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
        }

        .stat-value {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .stat-trend {
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .trend-up {
            color: var(--success);
        }

        .trend-down {
            color: var(--danger);
        }

        /* 内容卡片 */
        .content-cards {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .content-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .card-header {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0;
        }

        .card-action {
            color: var(--primary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .card-body {
            padding: 1.5rem;
        }

        /* 动态列表 */
        .activity-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .activity-item {
            padding-bottom: 1.5rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }

        .activity-item:last-child {
            padding-bottom: 0;
            margin-bottom: 0;
            border-bottom: none;
        }

        .activity-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 0.75rem;
        }

        .activity-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }

        .activity-user {
            flex-grow: 1;
        }

        .activity-name {
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0;
        }

        .activity-time {
            font-size: 0.8rem;
            color: var(--text-light);
        }

        .activity-content {
            margin-bottom: 1rem;
        }

        .activity-text {
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .activity-image {
            width: 100%;
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        .activity-actions {
            display: flex;
            gap: 1.5rem;
        }

        .activity-action {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-light);
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
            transition: color 0.2s;
        }

        .activity-action:hover {
            color: var(--primary);
        }

        /* 待办事项 */
        .todo-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .todo-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border);
        }

        .todo-item:last-child {
            border-bottom: none;
        }

        .todo-checkbox {
            margin-top: 0.25rem;
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .todo-content {
            flex-grow: 1;
        }

        .todo-text {
            margin-bottom: 0.25rem;
            font-size: 0.95rem;
        }

        .todo-text.completed {
            text-decoration: line-through;
            color: var(--text-light);
        }

        .todo-time {
            font-size: 0.8rem;
            color: var(--text-light);
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .content-cards {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 992px) {
            .sidebar {
                width: 80px;
                padding: 1.5rem 0;
            }

            .sidebar-menu-link span,
            .menu-badge,
            .menu-section-title,
            .user-profile-preview {
                display: none;
            }

            .sidebar-menu-link {
                justify-content: center;
                padding: 0.75rem;
            }

            .main-content {
                max-width: calc(100% - 80px);
                padding: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: 0;
                bottom: 0;
                width: 100%;
                height: auto;
                top: auto;
                border-right: none;
                border-top: 1px solid var(--border);
                z-index: 999;
            }

            .sidebar-menu {
                display: flex;
                justify-content: space-around;
            }

            .sidebar-menu-item {
                margin-bottom: 0;
                flex: 1;
            }

            .main-content {
                max-width: 100%;
                padding-bottom: 80px;
            }

            .search-box {
                display: none;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <nav class="navbar main-nav">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">
                <i class="fas fa-connectdevelop"></i> 多元社交
            </a>
            
            <div class="search-box d-none d-md-block">
                <i class="fas fa-search search-icon"></i>
                <input type="text" class="search-input" placeholder="搜索用户、文章或话题...">
            </div>
            
            <div class="nav-actions d-flex align-items-center">
                <a class="nav-link" href="#">
                    <i class="fas fa-home fa-lg"></i>
                </a>
                <a class="nav-link notification-badge" href="#">
                    <i class="fas fa-bell fa-lg"></i>
                    <span class="badge-count">3</span>
                </a>
                <a class="nav-link" href="#">
                    <i class="fas fa-envelope fa-lg"></i>
                </a>
                <div class="dropdown ms-2">
                    <button class="btn btn-link nav-link p-0" type="button" data-bs-toggle="dropdown">
                        <img src="https://picsum.photos/100/100?random=77" alt="你的头像" class="rounded-circle" style="width: 36px; height: 36px; object-fit: cover;">
                    </button>
                    <ul class="dropdown-menu dropdown-menu-end">
                        <li><a class="dropdown-item" href="#"><i class="fas fa-user me-2"></i> 个人主页</a></li>
                        <li><a class="dropdown-item" href="#"><i class="fas fa-cog me-2"></i> 设置</a></li>
                        <li><hr class="dropdown-divider"></li>
                        <li><a class="dropdown-item" href="#"><i class="fas fa-sign-out-alt me-2"></i> 退出登录</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主容器 -->
    <div class="dashboard-container">
        <!-- 侧边栏导航 -->
        <aside class="sidebar">
            <div class="user-profile-preview">
                <img src="https://picsum.photos/100/100?random=77" alt="你的头像" class="preview-avatar">
                <h3 class="preview-name">李明</h3>
                <p class="preview-bio">产品设计师 | 摄影爱好者</p>
                <button class="edit-profile-btn">
                    <i class="fas fa-edit me-1"></i> 编辑资料
                </button>
            </div>
            
            <span class="menu-section-title">个人中心</span>
            <ul class="sidebar-menu">
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link active">
                        <i class="fas fa-tachometer-alt menu-icon"></i>
                        <span>仪表盘</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-user menu-icon"></i>
                        <span>个人资料</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-images menu-icon"></i>
                        <span>我的相册</span>
                        <span class="menu-badge">12</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-bookmark menu-icon"></i>
                        <span>我的收藏</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-comment-alt menu-icon"></i>
                        <span>消息中心</span>
                        <span class="menu-badge">5</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-bell menu-icon"></i>
                        <span>通知提醒</span>
                        <span class="menu-badge">3</span>
                    </a>
                </li>
            </ul>
            
            <span class="menu-section-title">社交管理</span>
            <ul class="sidebar-menu">
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-users menu-icon"></i>
                        <span>我的好友</span>
                        <span class="menu-badge">358</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-user-plus menu-icon"></i>
                        <span>好友请求</span>
                        <span class="menu-badge">7</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-star menu-icon"></i>
                        <span>我的粉丝</span>
                        <span class="menu-badge">1.2k</span>
                    </a>
                </li>
            </ul>
            
            <span class="menu-section-title">系统</span>
            <ul class="sidebar-menu">
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-cog menu-icon"></i>
                        <span>设置</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-question-circle menu-icon"></i>
                        <span>帮助中心</span>
                    </a>
                </li>
                <li class="sidebar-menu-item">
                    <a href="#" class="sidebar-menu-link">
                        <i class="fas fa-sign-out-alt menu-icon"></i>
                        <span>退出登录</span>
                    </a>
                </li>
            </ul>
        </aside>
        
        <!-- 主内容区域 -->
        <main class="main-content">
            <div class="content-header">
                <h1 class="page-title">欢迎回来，李明</h1>
                <p class="page-description">这是你的个人中心，展示你的社交动态和重要信息</p>
            </div>
            
            <!-- 统计卡片 -->
            <div class="stats-grid">
                <div class="stat-card">
                    <div class="stat-card-header">
                        <span class="stat-title">动态数量</span>
                        <div class="stat-icon" style="background-color: rgba(22, 93, 255, 0.15);">
                            <i class="fas fa-comment"></i>
                        </div>
                    </div>
                    <div class="stat-value">246</div>
                    <div class="stat-trend trend-up">
                        <i class="fas fa-arrow-up"></i>
                        <span>较上月增长 12%</span>
                    </div>
                </div>
                
                <div class="stat-card">
                    <div class="stat-card-header">
                        <span class="stat-title">粉丝数量</span>
                        <div class="stat-icon" style="background-color: rgba(15, 198, 194, 0.15);">
                            <i class="fas fa-users"></i>
                        </div>
                    </div>
                    <div class="stat-value">1.2k</div>
                    <div class="stat-trend trend-up">
                        <i class="fas fa-arrow-up"></i>
                        <span>较上月增长 8%</span>
                    </div>
                </div>
                
                <div class="stat-card">
                    <div class="stat-card-header">
                        <span class="stat-title">获赞总数</span>
                        <div class="stat-icon" style="background-color: rgba(255, 125, 0, 0.15);">
                            <i class="fas fa-heart"></i>
                        </div>
                    </div>
                    <div class="stat-value">15.8k</div>
                    <div class="stat-trend trend-up">
                        <i class="fas fa-arrow-up"></i>
                        <span>较上月增长 15%</span>
                    </div>
                </div>
                
                <div class="stat-card">
                    <div class="stat-card-header">
                        <span class="stat-title">消息数量</span>
                        <div class="stat-icon" style="background-color: rgba(0, 180, 42, 0.15);">
                            <i class="fas fa-envelope"></i>
                        </div>
                    </div>
                    <div class="stat-value">32</div>
                    <div class="stat-trend trend-down">
                        <i class="fas fa-arrow-down"></i>
                        <span>较上月减少 3%</span>
                    </div>
                </div>
            </div>
            
            <!-- 内容卡片 -->
            <div class="content-cards">
                <!-- 最近动态 -->
                <div class="content-card">
                    <div class="card-header">
                        <h2 class="card-title">我的最近动态</h2>
                        <a href="#" class="card-action">查看全部</a>
                    </div>
                    <div class="card-body">
                        <ul class="activity-list">
                            <li class="activity-item">
                                <div class="activity-header">
                                    <img src="https://picsum.photos/100/100?random=77" alt="你的头像" class="activity-avatar">
                                    <div class="activity-user">
                                        <h4 class="activity-name">李明</h4>
                                        <div class="activity-time">今天 14:30</div>
                                    </div>
                                </div>
                                <div class="activity-content">
                                    <p class="activity-text">刚刚完成了一个新产品的设计方案，很开心能和大家分享我的设计思路。这次的重点是提升用户体验和简化操作流程。</p>
                                    <img src="https://picsum.photos/800/400?random=21" alt="设计作品图片" class="activity-image">
                                </div>
                                <div class="activity-actions">
                                    <button class="activity-action">
                                        <i class="far fa-heart"></i>
                                        <span>24</span>
                                    </button>
                                    <button class="activity-action">
                                        <i class="far fa-comment"></i>
                                        <span>8</span>
                                    </button>
                                    <button class="activity-action">
                                        <i class="far fa-share-square"></i>
                                        <span>分享</span>
                                    </button>
                                </div>
                            </li>
                            
                            <li class="activity-item">
                                <div class="activity-header">
                                    <img src="https://picsum.photos/100/100?random=77" alt="你的头像" class="activity-avatar">
                                    <div class="activity-user">
                                        <h4 class="activity-name">李明</h4>
                                        <div class="activity-time">昨天 09:15</div>
                                    </div>
                                </div>
                                <div class="activity-content">
                                    <p class="activity-text">周末去了郊外摄影，捕捉到了一些不错的自然风光。分享一张我最喜欢的照片，阳光透过树叶的感觉太棒了！</p>
                                    <img src="https://picsum.photos/800/400?random=22" alt="摄影作品图片" class="activity-image">
                                </div>
                                <div class="activity-actions">
                                    <button class="activity-action">
                                        <i class="far fa-heart"></i>
                                        <span>56</span>
                                    </button>
                                    <button class="activity-action">
                                        <i class="far fa-comment"></i>
                                        <span>12</span>
                                    </button>
                                    <button class="activity-action">
                                        <i class="far fa-share-square"></i>
                                        <span>分享</span>
                                    </button>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <!-- 待办事项和提醒 -->
                <div class="content-card">
                    <div class="card-header">
                        <h2 class="card-title">社交待办</h2>
                        <a href="#" class="card-action">管理</a>
                    </div>
                    <div class="card-body">
                        <ul class="todo-list">
                            <li class="todo-item">
                                <input type="checkbox" class="todo-checkbox">
                                <div class="todo-content">
                                    <p class="todo-text">回复张小红的评论</p>
                                    <p class="todo-time">今天 20:00 前</p>
                                </div>
                            </li>
                            <li class="todo-item">
                                <input type="checkbox" class="todo-checkbox">
                                <div class="todo-content">
                                    <p class="todo-text">查看7个新的好友请求</p>
                                    <p class="todo-time">今天内</p>
                                </div>
                            </li>
                            <li class="todo-item">
                                <input type="checkbox" class="todo-checkbox" checked>
                                <div class="todo-content">
                                    <p class="todo-text completed">上传上周旅行的照片</p>
                                    <p class="todo-time">已完成</p>
                                </div>
                            </li>
                            <li class="todo-item">
                                <input type="checkbox" class="todo-checkbox">
                                <div class="todo-content">
                                    <p class="todo-text">参加 tomorrow 的设计师线上交流会</p>
                                    <p class="todo-time">明天 19:30</p>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            
            <!-- 更多内容卡片可以在这里继续添加 -->
        </main>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 侧边栏菜单切换
            const menuLinks = document.querySelectorAll('.sidebar-menu-link');
            menuLinks.forEach(link => {
                link.addEventListener('click', function(e) {
                    e.preventDefault();
                    // 移除所有链接的活跃状态
                    menuLinks.forEach(l => l.classList.remove('active'));
                    // 添加当前链接的活跃状态
                    this.classList.add('active');
                    
                    // 这里可以添加加载对应内容的逻辑
                    const section = this.querySelector('span').textContent;
                    console.log(`切换到 ${section} 页面`);
                });
            });

            // 待办事项复选框功能
            const todoCheckboxes = document.querySelectorAll('.todo-checkbox');
            todoCheckboxes.forEach(checkbox => {
                checkbox.addEventListener('change', function() {
                    const todoText = this.nextElementSibling.querySelector('.todo-text');
                    if (this.checked) {
                        todoText.classList.add('completed');
                    } else {
                        todoText.classList.remove('completed');
                    }
                });
            });
        });
    </script>
</body>
</html>
    
